package pluggy.plugins.dotter;

import pluggy.plugins.Plugin;

public class Dotter implements Plugin {
	@Override
	public void init() {
		System.out.println("\tdotter ready");
	}
	
	@Override
	public void run() {
		new Thread() {
			@Override
			public void run() {
				for (int i = (int) (Math.random() * 3 + 1); i > 0; i--)
					System.out.print('.');
				try {
					Thread.sleep((int) (Math.random() * 2000));
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
				
				run();
			};
		}.start();
	}
}
